import Mock from "mockjs";
import cooperateEntity from "../model/cooperate.entity"
import cooperateProtocolEntity from "../model/cooperateProtocol.entity"
const cooperateInstance = new cooperateEntity();
const cooperateProtocoInstance = new cooperateProtocolEntity();
// 权限列表
Mock.mock(RegExp('/mock/api/cooperativeCompany/getAreaList' + '.*'), 'get', (options) => {
  return Mock.mock({
    code: 200,
    msg: 'success',
    data:{
      total:cooperateInstance.findAll().length,
      data:cooperateInstance.findAll()
    },
  })
})




// 权限列表
Mock.mock(RegExp('/mock/api/cooperateProtocol/getAreaList' + '.*'), 'get', (options) => {
  return Mock.mock({
    code: 200,
    msg: 'success',
    data:{
      total:cooperateProtocoInstance.findAll().length,
      data:cooperateProtocoInstance.findAll()
    },
  })
})